ring create an RSA key from PEM encoded string

78

/* create an RSA key from a PEM file */
try
        rsaKeyPEM = Read("privateKey.pem")
        rsaKey = rsa_import_pem(rsaKeyPEM)

        rsaPublicKeyPEM = Read("publicKey.pem")
        rsaPublicKey = rsa_import_pem(rsaPublicKeyPEM)
catch
        See "Unexpected error occured: " + cCatchError + nl
done
rsa_import_pem(cStrPEM) ---> a new RSA key

Comments

Submit
0 Comments